#include "process.h"
void processOn()
{
    int cnt=0;
    char bar[NUM];
    memset(bar,'\0',NUM);
    char type[4]={'|','/','-','\\'};
    while(cnt<=100)
    {
        printf("[%-100s][%d%%][%c]\r",bar,cnt,type[cnt%4]);//-100表示左对齐
        bar[cnt++]=STYLE;
        fflush(stdout); 
        usleep(50000);
    }
    printf("\n");
}













